import Layout                   from "@/layout/index.vue"
import { createNameComponent }  from "../createNode"

const route = [
    {
        path     : "/grouping",
        component: Layout,
        redirect : "/grouping/manager",
        meta     : { title: "分组分析", icon: "sfont system-page" },
        children : [
            {
                path     : "quantile",
                component: createNameComponent(() => import("@/views/main/grouping/quantile/Quantile.vue")),
                meta     : { title: "分位数法分组", icon: "sfont system-page" },
            },
            {
                path     : "naturalBreaks",
                component: createNameComponent(() => import("@/views/main/grouping/naturalBreaks/NaturalBreaks.vue")),
                meta     : { title: "自然断点法分组", icon: "sfont system-page" },
            },
            {
                path     : "equalInterval",
                component: createNameComponent(() => import("@/views/main/grouping/equalInterval/EqualInterval.vue")),
                meta     : { title: "等间距法分组", icon: "sfont system-page" },
            },
            {
                path     : "customRule",
                component: createNameComponent(() => import("@/views/main/grouping/customRule/CustomRule.vue")),
                meta     : { title: "自定义规则法分组", icon: "sfont system-page" },
            },
        ],
    },
]

export default route
